Optimal. Leaf size=61 \[ -\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {2 a \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {e \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2748, 2721,
2720} \begin {gather*} \frac {2 a \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {e \cos (c+d x)}}-\frac {2 a \sqrt {e \cos (c+d x)}}{d e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2720
Rule 2721
Rule 2748
Rubi steps
\begin {align*} \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx &=-\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+a \int \frac {1}{\sqrt {e \cos (c+d x)}} \, dx\\ &=-\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {\left (a \sqrt {\cos (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{\sqrt {e \cos (c+d x)}}\\ &=-\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {2 a \sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{d \sqrt {e \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 14.17, size = 48, normalized size = 0.79 \begin {gather*} -\frac {2 a \left (\cos (c+d x)-\sqrt {\cos (c+d x)} F\left (\left .\frac {1}{2} (c+d x)\right |2\right )\right )}{d \sqrt {e \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.99, size = 103, normalized size = 1.69
method | result | size |
default | \(-\frac {2 a \left (\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \EllipticF \left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-2 \left (\sin ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) e +e}\, d}\) | \(103\) |
risch | \(-\frac {\left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) a \sqrt {2}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{-i \left (d x +c \right )}}}+\frac {2 \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {i \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, \EllipticF \left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right ) a \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{i \left (d x +c \right )}}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \sqrt {{\mathrm e}^{3 i \left (d x +c \right )} e +{\mathrm e}^{i \left (d x +c \right )} e}\, \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{-i \left (d x +c \right )}}}\) | \(232\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.10, size = 66, normalized size = 1.08 \begin {gather*} \frac {{\left (-i \, \sqrt {2} a {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} a {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 2 \, a \sqrt {\cos \left (d x + c\right )}\right )} e^{\left (-\frac {1}{2}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} a \left (\int \frac {1}{\sqrt {e \cos {\left (c + d x \right )}}}\, dx + \int \frac {\sin {\left (c + d x \right )}}{\sqrt {e \cos {\left (c + d x \right )}}}\, dx\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.55, size = 45, normalized size = 0.74 \begin {gather*} -\frac {2\,a\,\sqrt {\cos \left (c+d\,x\right )}\,\left (\sqrt {\cos \left (c+d\,x\right )}-\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\right )}{d\,\sqrt {e\,\cos \left (c+d\,x\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________